<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Data Structures for Sets and Graphs: Dsatur&lt; T, D &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Data Structures for Sets and Graphs
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Dsatur&lt; T, D &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="ColoringHeuristic_8h_source.html">ColoringHeuristic.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Dsatur&lt; T, D &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classDsatur__inherit__graph.png" border="0" usemap="#Dsatur_3_01T_00_01D_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="Dsatur_3_01T_00_01D_01_4_inherit__map" id="Dsatur_3_01T_00_01D_01_4_inherit__map">
<area shape="rect" id="node2" href="classColoringHeuristic.html" title="This class encapsulates a set of algorithms to color a graph." alt="" coords="5,6,136,53"/><area shape="rect" id="node4" href="classTripleList.html" title="TripleList\&lt; T, D \&gt;" alt="" coords="160,15,285,44"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Dsatur&lt; T, D &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="classDsatur__coll__graph.png" border="0" usemap="#Dsatur_3_01T_00_01D_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="Dsatur_3_01T_00_01D_01_4_coll__map" id="Dsatur_3_01T_00_01D_01_4_coll__map">
<area shape="rect" id="node2" href="classColoringHeuristic.html" title="This class encapsulates a set of algorithms to color a graph." alt="" coords="5,102,136,149"/><area shape="rect" id="node4" href="classFactory.html" title="Factory\&lt; D\&lt; T \&gt; \&gt;" alt="" coords="5,5,136,35"/><area shape="rect" id="node6" href="classTripleList.html" title="TripleList\&lt; T, D \&gt;" alt="" coords="160,111,285,140"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classDsatur-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af30bebb51dc3aa571543fdb1d5507c10"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDsatur.html#af30bebb51dc3aa571543fdb1d5507c10">run</a> (<a class="el" href="classGraph.html">Graph</a>&lt; D&lt; T &gt; &gt; *g, long *res, long *R, long r)</td></tr>
<tr class="inherit_header pub_methods_classColoringHeuristic"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classColoringHeuristic')"><img src="closed.png" alt="-"/>&nbsp;Public Member Functions inherited from <a class="el" href="classColoringHeuristic.html">ColoringHeuristic< T, D ></a></td></tr>
<tr class="memitem:a7e73234d994a1af4002a87354fb68b1f inherit pub_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a7e73234d994a1af4002a87354fb68b1f">~ColoringHeuristic</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ac8ca739dcd100006ec9bea8280248a0e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDsatur.html#ac8ca739dcd100006ec9bea8280248a0e">Dsatur</a> (long <a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a>, <a class="el" href="classFactory.html">Factory</a>&lt; D&lt; T &gt; &gt; *f)</td></tr>
<tr class="memitem:a5ed99f28027fea96bbbbed0094537694"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDsatur.html#a5ed99f28027fea96bbbbed0094537694">~Dsatur</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a5de685d57c405d29b034738d6d8cc568"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDsatur.html#a5de685d57c405d29b034738d6d8cc568">ColoringHeuristic</a></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classColoringHeuristic"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classColoringHeuristic')"><img src="closed.png" alt="-"/>&nbsp;Static Public Member Functions inherited from <a class="el" href="classColoringHeuristic.html">ColoringHeuristic< T, D ></a></td></tr>
<tr class="memitem:aa54345bb1fc4a68dd9b135bdb2ecb098 inherit pub_static_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">static long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#aa54345bb1fc4a68dd9b135bdb2ecb098">bucketSort</a> (long *color, long cmin, long cmax, long *R, long r)</td></tr>
<tr class="memitem:a7bfb89fa3681e587f3b3f52e5c8183b1 inherit pub_static_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classColoringHeuristic.html">ColoringHeuristic</a>&lt; T, D &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a7bfb89fa3681e587f3b3f52e5c8183b1">greedy</a> (long <a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a>, <a class="el" href="classFactory.html">Factory</a>&lt; D &gt; *<a class="el" href="classColoringHeuristic.html#a40cd35433cef882c6d01ba41ba8bb324">factory</a>)</td></tr>
<tr class="memdesc:a7bfb89fa3681e587f3b3f52e5c8183b1 inherit pub_static_methods_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">Made a greedy coloring of the subgraph induced by the vertexes in R, with the order that they appear in R.  <a href="#a7bfb89fa3681e587f3b3f52e5c8183b1"></a><br/></td></tr>
<tr class="memitem:a449990b4b90c04a0ba4d0cf55f7f9280 inherit pub_static_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classColoringHeuristic.html">ColoringHeuristic</a>&lt; T, D &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a449990b4b90c04a0ba4d0cf55f7f9280">dsatur</a> (long <a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a>, <a class="el" href="classFactory.html">Factory</a>&lt; D &gt; *<a class="el" href="classColoringHeuristic.html#a40cd35433cef882c6d01ba41ba8bb324">factory</a>)</td></tr>
<tr class="memdesc:a449990b4b90c04a0ba4d0cf55f7f9280 inherit pub_static_methods_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines a greedy coloring of the subgraph induced by the specified vertices using the <a class="el" href="classDsatur.html">Dsatur</a> algorithm.  <a href="#a449990b4b90c04a0ba4d0cf55f7f9280"></a><br/></td></tr>
<tr class="memitem:a3daa607fd5e566bb6f9b7317aec0120c inherit pub_static_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classColoringHeuristic.html">ColoringHeuristic</a>&lt; T, D &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a3daa607fd5e566bb6f9b7317aec0120c">mcr</a> (long <a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a>, <a class="el" href="classFactory.html">Factory</a>&lt; D &gt; *<a class="el" href="classColoringHeuristic.html#a40cd35433cef882c6d01ba41ba8bb324">factory</a>)</td></tr>
<tr class="memdesc:a3daa607fd5e566bb6f9b7317aec0120c inherit pub_static_methods_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cover the vertexes of the graph according its degree and the degree of its neighbours.  <a href="#a3daa607fd5e566bb6f9b7317aec0120c"></a><br/></td></tr>
<tr class="memitem:a81c3d4609d908cc8a16d1d4cd311b47e inherit pub_static_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a81c3d4609d908cc8a16d1d4cd311b47e">FCP2</a> (<a class="el" href="classGraph.html">Graph</a> *g, long k, long **rank)</td></tr>
<tr class="inherit_header pro_methods_classColoringHeuristic"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classColoringHeuristic')"><img src="closed.png" alt="-"/>&nbsp;Protected Member Functions inherited from <a class="el" href="classColoringHeuristic.html">ColoringHeuristic< T, D ></a></td></tr>
<tr class="memitem:aab770ebba9e775828c6d837b05c47852 inherit pro_methods_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#aab770ebba9e775828c6d837b05c47852">ColoringHeuristic</a> (long <a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a>, <a class="el" href="classFactory.html">Factory</a>&lt; D&lt; T &gt; &gt; *f)</td></tr>
<tr class="memdesc:aab770ebba9e775828c6d837b05c47852 inherit pro_methods_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a covering algorithm object.  <a href="#aab770ebba9e775828c6d837b05c47852"></a><br/></td></tr>
<tr class="inherit_header pro_attribs_classColoringHeuristic"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classColoringHeuristic')"><img src="closed.png" alt="-"/>&nbsp;Protected Attributes inherited from <a class="el" href="classColoringHeuristic.html">ColoringHeuristic< T, D ></a></td></tr>
<tr class="memitem:af0cb59214cd56b3cdb522d0cc4981273 inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#af0cb59214cd56b3cdb522d0cc4981273">n</a></td></tr>
<tr class="memdesc:af0cb59214cd56b3cdb522d0cc4981273 inherit pro_attribs_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">max number of elements  <a href="#af0cb59214cd56b3cdb522d0cc4981273"></a><br/></td></tr>
<tr class="memitem:a40cd35433cef882c6d01ba41ba8bb324 inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFactory.html">Factory</a>&lt; D&lt; T &gt; &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a40cd35433cef882c6d01ba41ba8bb324">factory</a></td></tr>
<tr class="memitem:ae4cf7db5667d8d65aa6b7c41ee27ef60 inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">D&lt; T &gt; *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#ae4cf7db5667d8d65aa6b7c41ee27ef60">bitR</a></td></tr>
<tr class="memitem:a99bba05a6a6c8df2bc7ffb4f1f5aea9b inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">D&lt; T &gt; **const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a99bba05a6a6c8df2bc7ffb4f1f5aea9b">colors</a></td></tr>
<tr class="memitem:ad51d1ebb6f77365b5737001d39b62324 inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAndFilter.html">AndFilter</a>&lt; T &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#ad51d1ebb6f77365b5737001d39b62324">andFilter</a></td></tr>
<tr class="memitem:a2dce80a62997557dc676eb05565c5379 inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">long *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a2dce80a62997557dc676eb05565c5379">invR</a></td></tr>
<tr class="memdesc:a2dce80a62997557dc676eb05565c5379 inherit pro_attribs_classColoringHeuristic"><td class="mdescLeft">&#160;</td><td class="mdescRight">inverse of input mappings  <a href="#a2dce80a62997557dc676eb05565c5379"></a><br/></td></tr>
<tr class="memitem:a3af684edbb71a7a430e05e3e79ec938c inherit pro_attribs_classColoringHeuristic"><td class="memItemLeft" align="right" valign="top">D&lt; T &gt; *const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classColoringHeuristic.html#a3af684edbb71a7a430e05e3e79ec938c">degR</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T, template&lt; typename T &gt; class D&gt;<br/>
class Dsatur&lt; T, D &gt;</h3>

<p>Sorts input array of vertices according to saturation degree. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac8ca739dcd100006ec9bea8280248a0e"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, template&lt; typename T &gt; class D&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDsatur.html">Dsatur</a>&lt; T, D &gt;::<a class="el" href="classDsatur.html">Dsatur</a> </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classFactory.html">Factory</a>&lt; D&lt; T &gt; &gt; *&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5ed99f28027fea96bbbbed0094537694"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, template&lt; typename T &gt; class D&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classDsatur.html">Dsatur</a>&lt; T, D &gt;::~<a class="el" href="classDsatur.html">Dsatur</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="af30bebb51dc3aa571543fdb1d5507c10"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename T &gt; class D&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="classDsatur.html">Dsatur</a>&lt; T, D &gt;::run </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGraph.html">Graph</a>&lt; D&lt; T &gt; &gt; *&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>res</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long *&#160;</td>
          <td class="paramname"><em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters:</dt><dd>
  <table class="params">
    <tr><td class="paramname">g</td><td>the input graph </td></tr>
    <tr><td class="paramname">res</td><td>the vector in which the colors are returned: the position <code>i</code> in this vector indicates the color of the vertex <code>R</code>[i] in the greedy coloring of the subgraph induced by <code>R</code>. </td></tr>
    <tr><td class="paramname">R</td><td>a vector representing the verticees to be colored and the order to be used to color them. </td></tr>
    <tr><td class="paramname">r</td><td>the number of verticees in the subgraph.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>the number of colors used in the greedy coloring of the subgraph induced by <code>R</code> returned in <code>cover</code> </dd></dl>

<p>Implements <a class="el" href="classColoringHeuristic.html#a043dfbbdcaf49f350254e1738de34f82">ColoringHeuristic&lt; T, D &gt;</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a5de685d57c405d29b034738d6d8cc568"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T, template&lt; typename T &gt; class D&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classColoringHeuristic.html">ColoringHeuristic</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>graphs/<a class="el" href="ColoringHeuristic_8h_source.html">ColoringHeuristic.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Nov 26 2012 17:06:46 for Data Structures for Sets and Graphs by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
